﻿using System;
using System.Collections;
using System.Web.Services;
using BLL;

namespace GeniusAdminWebApplication
{
    public partial class system : System.Web.UI.Page
    {
        NoticeService ns = new NoticeService();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod]
        public static string publishNotice(string content, int type)
        {
            NoticeService ns = new NoticeService();
            Hashtable ht = ns.publishNotice(type, content);
            string result = (string)ht["result"];
            string message = (string)ht["message"];
            return "{" +
                        "result:'" + result + "'," +
                        "message:'" + message + "'" +
                    "}";
        }

    }
}